package com.project.service.impl;

import com.project.bean.StudentBean;
import com.project.mapper.IStudentMapper;
import com.project.service.IStudentService;

import java.util.List;

public class StudentServiceImpl implements IStudentService {
    private IStudentMapper mapper;

    @Override
    public void add(StudentBean student) {
        mapper.add(student);
    }

    @Override
    public void del(Integer id) {
        mapper.del(id);
    }

    @Override
    public void update(Integer id, String phone) {
        mapper.update(id, phone);
    }

    @Override
    public List<StudentBean> findAll() {
        return mapper.findAll();
    }

    @Override
    public StudentBean findById(Integer id) {
        return mapper.findById(id);
    }
}
